<?php
use app\ExceptionHandle;
use app\factory\model\RequestAgreement;
use app\factory\model\ResponseAgreement;
use app\factory\tool\EmailSendTool;
use app\factory\tool\frameVerify\EncryptionTool;
use app\factory\tool\ImageStorageTool;
use app\factory\tool\TokenCreate;
use app\factory\tool\VerifyIsTest;
use app\Request;

// 容器Provider定义文件
return [
    'think\Request'          => Request::class,
    'think\exception\Handle' => ExceptionHandle::class,
    // 请求协议类
    RequestAgreement::MODEL_REQUEST_AGREEMENT => RequestAgreement::class,
    // 响应协议类
    ResponseAgreement::MODEL_RESPONSE_AGREEMENT=> ResponseAgreement::class,
    // 加密工具类
    EncryptionTool::TOOL_ENCRYPTION_TOOL => EncryptionTool::class,
    // 邮箱发送工具类
    EmailSendTool::TOOL_EMAIL_SEND_TOOL => EmailSendTool::class,
    // token生成类
    TokenCreate::TOOL_TOKEN_CREATE => TokenCreate::class,
    // 图片存储工具
    ImageStorageTool::TOOL_IMAGE_STORAGE_TOOL => ImageStorageTool::class,
    // 校验是否测试
    VerifyIsTest::TOOL_VERIFY_IS_TEST=> VerifyIsTest::class,

    ####################################框架类##################################
];
